package com.example.dormlist;

import com.example.dormlist.entity.DormitoryBuilding;
import com.example.dormlist.entity.DormitoryRoom;
import com.example.dormlist.entity.DormitoryUnit;
import com.example.dormlist.entity.UserInfo;
import com.example.dormlist.repo.DormitoryBuildingRepository;
import com.example.dormlist.repo.DormitoryRoomRepository;
import com.example.dormlist.repo.DormitoryUnitRepository;
import com.example.dormlist.repo.UserInfoRepository;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class DormListApplication {

    public static void main(String[] args) {
        SpringApplication.run(DormListApplication.class, args);
    }

//    @Bean
//    CommandLineRunner commandLineRunner(DormitoryRoomRepository dormitoryRoomRepository) {
//        return args -> {
//            DormitoryRoom dormitoryRoom = new DormitoryRoom(
//                    3L,
//                    "5101",
//                    "male",
//                    4,
//                    4,
//                    0
//            );
//            dormitoryRoomRepository.save(dormitoryRoom);
//        };
//    }
}
